{extend name="public/father" /}

{block name="main"}
<style>
    .layui-form-pane .layui-form-text{padding: 0 10px;}
    .layui-form-pane .layui-form-label{background: none !important;padding-left: 2px;border: 0;color:#000;}
    .layui-form-pane .layui-form-text input, .layui-form-pane .layui-form-text textarea{border-radius: 3px !important;}
</style>

<div class="layui-card">
    <div class="layui-card-body">

        <form class="layui-form layui-form-pane" method="post" style="margin-top: 10px;">

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">项目名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" required lay-verify="required" placeholder="便于识别" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">选择域名</label>
                <div class="layui-input-block">
                    <select name="did">
                        {foreach $domains as $v}
                        <option value="{$v.id}">{$v.domain}</option>
                        {/foreach}
                    </select>
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">目标网址</label>
                <div class="layui-input-block">
                    <textarea name="url" placeholder="每行一个网址；
例如：http://www.qq.com" class="layui-textarea" rows="6"></textarea>
                </div>
                <div class="layui-form-mid layui-word-aux">* 每行一个网址，支持泛域名，例如：http://www.qq.com</div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">访问量</label>
                <div class="layui-input-block">
                    <input type="text" name="view" value="0" required lay-verify="number" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                    <input type="checkbox" name="status" value="1" lay-skin="switch" lay-text="启用|禁用" checked>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="create">立即保存</button>
                </div>
            </div>
        </form>

    </div>
</div>
{/block}
